package com.dingreading.cloud.app.service.impl;

import com.mybatisflex.core.BaseMapper;
import com.mybatisflex.core.table.TableDef;
import com.mybatisflex.spring.service.impl.ServiceImpl;

public abstract class BaseServiceImpl<M extends BaseMapper<T>, T, TD extends TableDef> extends ServiceImpl<M, T> {

    protected TD table;

    public BaseServiceImpl() {
        table = getTable();
    }

    protected abstract TD getTable();
}
